package com.cg.controller;

import com.cg.client.AppClient;
import com.cg.dto.Result;
import com.cg.entity.AppSource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @ClassName AppSourceController
 * @Description TODO
 * @Author CG
 * @Date 2024/1/14 15:14
 **/
@RestController
@RequestMapping("/appSource")
public class AppSourceController {

    @Resource
    private AppClient appClient;

    /**
     * 查询菜单类型查询菜单集合
     */
    @GetMapping("/queryAppSource")
    public Result<List<AppSource>> queryAppSource(Integer sourceType){
        return appClient.queryAppSource(sourceType);
    }
}
